.search-page {
  min-height: 100vh;
  background-color: #f5f5f5;
}

.search-container {
  padding: 16px;
}

.search-input-wrapper {
  margin-bottom: 20px;
}

.search-input-wrapper .adm-search-bar {
  border: 2px solid #e8e8e8;
  border-radius: 12px;
  background: #fff;
  transition: all 0.3s ease;
  overflow: hidden;
}

.search-input-wrapper .adm-search-bar:focus-within {
  border-color: #1890ff;
  box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.search-input-wrapper .adm-search-bar .adm-search-bar-input {
  border: none;
  background: transparent;
}

.search-input-wrapper .adm-search-bar .adm-search-bar-input:focus {
  outline: none;
  box-shadow: none;
}

.search-results {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
}

.search-loading {
  text-align: center;
  padding: 40px 16px;
  color: #999;
}

.no-results {
  text-align: center;
  padding: 40px 16px;
  color: #999;
}

.no-results-tip {
  font-size: 14px;
  color: #ccc;
  margin-top: 8px;
}

.search-result-item {
  padding: 16px;
}

.result-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.result-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  flex: 1;
}

.result-type {
  padding: 2px 8px;
  border-radius: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  margin-left: 12px;
}

.result-description {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
}

.search-suggestions {
  background: #fff;
  border-radius: 8px;
  padding: 20px 16px;
}

.suggestions-title {
  margin: 0 0 16px 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.suggestions-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.popular-loading {
  text-align: center;
  padding: 20px;
  color: #999;
  width: 100%;
}

/* 病友圈结果左图右文布局 */
.sick-circle-result-layout {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.sick-circle-avatar {
  flex-shrink: 0;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid #f0f0f0;
  background: #f8f9fa;
  display: flex;
  align-items: center;
  justify-content: center;
}

.avatar-placeholder {
  font-size: 24px;
  color: #666;
}

.sick-circle-info {
  flex: 1;
  min-width: 0;
}

.sick-circle-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.sick-circle-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
  flex: 1;
}

.sick-circle-type {
  padding: 2px 8px;
  border-radius: 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  margin-left: 12px;
}

.sick-circle-detail {
  margin: 0 0 8px 0;
  font-size: 14px;
  color: #666;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sick-circle-stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.sick-circle-stats span {
  font-size: 12px;
  color: #666;
  background: #f5f5f5;
  padding: 2px 6px;
  border-radius: 8px;
}

.collection-count {
  color: #1890ff;
}

.comment-count {
  color: #52c41a;
}

.bounty {
  color: #fa8c16;
  font-weight: 500;
}

/* 搜索记录样式 */
.search-history {
  background: #fff;
  border-radius: 8px;
  padding: 20px 16px;
  margin-bottom: 16px;
}

.history-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.history-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

.history-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

/* 响应式设计 */
@media (max-width: 375px) {
  .search-container {
    padding: 12px;
  }
  
  .search-result-item {
    padding: 12px;
  }
  
  .result-title {
    font-size: 15px;
  }
  
  .result-description {
    font-size: 13px;
  }

  .sick-circle-avatar {
    width: 50px;
    height: 50px;
  }

  .sick-circle-title {
    font-size: 15px;
  }

  .sick-circle-detail {
    font-size: 13px;
  }

  .sick-circle-stats {
    gap: 8px;
  }

  .sick-circle-stats span {
    font-size: 11px;
    padding: 1px 4px;
  }
}
